#include<iostream>
#include<cctype>
int main(void){
	using namespace std;
	using std::string;
	
	string s("Hello World!");
	//string::size_type
	decltype(s.size()) punct_cnt = 0;
	for(auto c : s){
		if(ispunct(c)){
			++punct_cnt;
		}
	}
	cout<<"punct_cnt is :"<<punct_cnt<<endl;
	
	return 0;
}